<button class="btn btn-danger" ng-click="order.pay()">pay</button><br>
<a class="btn btn-primary" href="http://www.baidu.com">oauth</a>
<script type="text/javascript">
var script=document.createElement('script');
script.type='text/javascript';
script.src='https://one.pingxx.com/lib/pingpp_one.js';
script.onload=function(){
	document.addEventListener('pingpp_one_ready',function(e){
		pingpp_one.success(function(res){
			if(!res.status){
				alert(res.msg);
			}
		},function(){
			window.location.href="/";   //示例
		});
	});
};
document.body.appendChild(script);
</script>

